package com.xli.mis.codeitems.mapper;

import com.xli.mis.codeitems.entity.CodeItems;
import com.xli.mis.codeitems.entity.CodeItemsCache;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ICodeItemsCacheMapper {

    ICodeItemsCacheMapper INSTANCE = Mappers.getMapper(ICodeItemsCacheMapper.class);

    CodeItemsCache toCacheEntity(CodeItems codeItems);

    List<CodeItemsCache> toCacheList(List<CodeItems> codeItemsList);

    List<CodeItems> toEntityList(List<CodeItemsCache> codeItemsCacheList);
}
